package com.weds.edwx.service;

import com.weds.core.annotation.Logs;
import com.weds.core.base.BaseService;
import com.weds.edwx.entity.NoticeEntity;
import com.weds.edwx.mapper.NoticeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeService extends BaseService {

    @Autowired
    private NoticeMapper noticeMapper;

    public List<NoticeEntity> selectByUser(NoticeEntity noticeEntity){
       return noticeMapper.selectByUser(noticeEntity);
    }

    public NoticeEntity selectByBh(NoticeEntity noticeEntity){
        return noticeMapper.selectByBh(noticeEntity);
    }

    public int update(NoticeEntity noticeEntity){
        return noticeMapper.update(noticeEntity);
    }
}
